package com.gai.adivce;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

public class AfterUpdateEmp implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("方法名:"+method.getName());
        System.out.println("方法参数:"+ Arrays.toString(args));
        System.out.println("目标名:"+target.getClass().getSimpleName());
        System.out.println("返回值是" + returnValue);
        System.out.println("这里是后置增强emp=========================>");
    }
}
